EngineOptions

public final class EngineOptions

The options that are used to configure Engine instances.

Types

Link copied to clipboard
public final class Builder
A builder class to construct engine options.

Functions

Link copied to clipboard
public Path chromiumDir()
Returns an absolute path to the directory where Chromium binaries are located or the empty string if it was not set.
Link copied to clipboard
Returns an Optional that contains the disk cache size in bytes or an empty Optional if the disk cache size was not set.
Link copied to clipboard
Returns an Optional that contains a string representing the Google API key or an empty Optional if the Google API key was not set.
Link copied to clipboard
Returns an Optional that contains a string representing the Google client ID or an empty Optional if the Google client ID was not set.
Link copied to clipboard
Returns an Optional that contains a string representing the Google client secret or an empty Optional if the Google client secret was not set.
Link copied to clipboard
public boolean isAutoplayEnabled()
Indicates whether video playback will automatically start after page loading.
Link copied to clipboard
public boolean isDnsOverHttpsDisabled()
Indicates whether the DNS over HTTPS (DoH) protocol is disabled.
Link copied to clipboard
public boolean isDnsQuickCheckDisabled()
Indicates whether DNS Quick Check is disabled in proxy resolution.
Link copied to clipboard
Indicates whether file access from files is allowed.
Link copied to clipboard
public boolean isGpuDisabled()
Indicates whether GPU is disabled.
Link copied to clipboard
public boolean isIncognitoEnabled()
Indicates whether the default profile of the Engine instance is incognito.
Link copied to clipboard
public boolean isMediaRoutingEnabled()
Indicates whether media routing is enabled for the Engine instance.
Link copied to clipboard
Indicates whether the given proprietary feature is enabled.
Link copied to clipboard
public boolean isSandboxDisabled()
Indicates whether the sandbox is disabled.
Link copied to clipboard
public boolean isTouchMenuDisabled()
Indicates whether touch popup menu is disabled.
Link copied to clipboard
public boolean isWebSecurityDisabled()
Indicates whether the same-origin policy is disabled.
Link copied to clipboard
public Language language()
Returns the Chromium language that is used on the default error pages and message dialogs.
Link copied to clipboard
Returns an Optional that contains a string representing the license key or an empty Optional if the license key was not set.
Link copied to clipboard
public static EngineOptions.Builder newBuilder(RenderingMode renderingMode)
Creates a new EngineOptions builder.
Link copied to clipboard
Returns an Optional that contains the password store type or an empty Optional if the password store type was not set.
Link copied to clipboard
Returns a set of enabled proprietary features.
Link copied to clipboard
Returns an Optional that contains the number representing the remote debugging port or an empty Optional if the remote debugging port was not set.
Link copied to clipboard
Returns how many seconds JavaScript can block the page before it is considered hanged.
Link copied to clipboard
Returns the rendering mode indicating how the content of the web pages will be rendered.
Link copied to clipboard
Returns an immutable map of the schemes that will be intercepted.
Link copied to clipboard
Returns an immutable list of the insecure origins that will be treated as secure.
Link copied to clipboard
public List<String> switches()
Returns an immutable list of the Chromium switches that will be passed to the Chromium Main process.
Link copied to clipboard
Returns an Optional that contains a string that is used to override the default user agent or an empty Optional if the custom user agent string was not set.
Link copied to clipboard
public Path userDataDir()
Returns an absolute path to the directory where the user data is stored.